//***********************************************************************
//	File:		Basher.h
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************



#pragma once
#include "Enemy.h"
#include "Player.h"
class Basher :
	public Enemy
{
public:
	//Trilogy
	Basher(float posX = 0, float posY = 0);
	~Basher();
	Basher(const Basher&) = default;
	Basher& operator =(const Basher&) = default; 

	//Type
	int GetType() const { return ENT_BASHER; }

	//Interface
	void Update(float dt);
	void Render();
	void HandleCollision(const IEntity* pOther);
	void HandleEvent();
	SGD::Rectangle GetRect() const;
	void ModifyHealth(float hpAmount);
	void ApplyFriction(float dt);

	void Attack(float dt);
	void Move(void);

	//Accessors
	float GetDamage(void) { return m_fDamage; }
	float GetNextAttack(void) { return m_fNextAttack; }
	float GetAttackCDL(void) { return m_fAttackCDL; }

	//Mutators
	void SetDamage(float dam) { m_fDamage = dam; }
	void SetNextAttack(float na) { m_fNextAttack = na; }
	void SetAttackCDL(float aCDL) { m_fAttackCDL = aCDL; }

private:
	float m_fDamage = 0.0f;
	float m_fNextAttack = 0.0f; 
	float m_fAttackCDL = 0.0f; 
	Entity* pTarget;
	float m_fTotalHP = 100.0f;
	bool m_bMove = false;
	Player* pTarget2;
};

